﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001411 RID: 5137
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class TrainPartyPassenger : IMessage<TrainPartyPassenger>, IMessage, IEquatable<TrainPartyPassenger>, IDeepCloneable<TrainPartyPassenger>, IBufferMessage
	{
		// Token: 0x170040D0 RID: 16592
		// (get) Token: 0x0600E61B RID: 58907 RVA: 0x00267B6D File Offset: 0x00265D6D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<TrainPartyPassenger> Parser
		{
			get
			{
				return TrainPartyPassenger._parser;
			}
		}

		// Token: 0x170040D1 RID: 16593
		// (get) Token: 0x0600E61C RID: 58908 RVA: 0x00267B74 File Offset: 0x00265D74
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return TrainPartyPassengerReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170040D2 RID: 16594
		// (get) Token: 0x0600E61D RID: 58909 RVA: 0x00267B86 File Offset: 0x00265D86
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return TrainPartyPassenger.Descriptor;
			}
		}

		// Token: 0x0600E61E RID: 58910 RVA: 0x00267B8D File Offset: 0x00265D8D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrainPartyPassenger()
		{
		}

		// Token: 0x0600E61F RID: 58911 RVA: 0x00267BA0 File Offset: 0x00265DA0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrainPartyPassenger(TrainPartyPassenger other) : this()
		{
			this.recordId_ = other.recordId_;
			this.dNGLGOMMFNP_ = other.dNGLGOMMFNP_;
			this.bFGGMBADMHB_ = other.bFGGMBADMHB_.Clone();
			this.passengerId_ = other.passengerId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600E620 RID: 58912 RVA: 0x00267BF9 File Offset: 0x00265DF9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrainPartyPassenger Clone()
		{
			return new TrainPartyPassenger(this);
		}

		// Token: 0x170040D3 RID: 16595
		// (get) Token: 0x0600E621 RID: 58913 RVA: 0x00267C01 File Offset: 0x00265E01
		// (set) Token: 0x0600E622 RID: 58914 RVA: 0x00267C09 File Offset: 0x00265E09
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint RecordId
		{
			get
			{
				return this.recordId_;
			}
			set
			{
				this.recordId_ = value;
			}
		}

		// Token: 0x170040D4 RID: 16596
		// (get) Token: 0x0600E623 RID: 58915 RVA: 0x00267C12 File Offset: 0x00265E12
		// (set) Token: 0x0600E624 RID: 58916 RVA: 0x00267C1A File Offset: 0x00265E1A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool DNGLGOMMFNP
		{
			get
			{
				return this.dNGLGOMMFNP_;
			}
			set
			{
				this.dNGLGOMMFNP_ = value;
			}
		}

		// Token: 0x170040D5 RID: 16597
		// (get) Token: 0x0600E625 RID: 58917 RVA: 0x00267C23 File Offset: 0x00265E23
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> BFGGMBADMHB
		{
			get
			{
				return this.bFGGMBADMHB_;
			}
		}

		// Token: 0x170040D6 RID: 16598
		// (get) Token: 0x0600E626 RID: 58918 RVA: 0x00267C2B File Offset: 0x00265E2B
		// (set) Token: 0x0600E627 RID: 58919 RVA: 0x00267C33 File Offset: 0x00265E33
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint PassengerId
		{
			get
			{
				return this.passengerId_;
			}
			set
			{
				this.passengerId_ = value;
			}
		}

		// Token: 0x0600E628 RID: 58920 RVA: 0x00267C3C File Offset: 0x00265E3C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as TrainPartyPassenger);
		}

		// Token: 0x0600E629 RID: 58921 RVA: 0x00267C4C File Offset: 0x00265E4C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(TrainPartyPassenger other)
		{
			return other != null && (other == this || (this.RecordId == other.RecordId && this.DNGLGOMMFNP == other.DNGLGOMMFNP && this.bFGGMBADMHB_.Equals(other.bFGGMBADMHB_) && this.PassengerId == other.PassengerId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600E62A RID: 58922 RVA: 0x00267CBC File Offset: 0x00265EBC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.RecordId != 0U)
			{
				num ^= this.RecordId.GetHashCode();
			}
			if (this.DNGLGOMMFNP)
			{
				num ^= this.DNGLGOMMFNP.GetHashCode();
			}
			num ^= this.bFGGMBADMHB_.GetHashCode();
			if (this.PassengerId != 0U)
			{
				num ^= this.PassengerId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600E62B RID: 58923 RVA: 0x00267D3B File Offset: 0x00265F3B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600E62C RID: 58924 RVA: 0x00267D43 File Offset: 0x00265F43
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600E62D RID: 58925 RVA: 0x00267D4C File Offset: 0x00265F4C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.bFGGMBADMHB_.WriteTo(ref output, TrainPartyPassenger._repeated_bFGGMBADMHB_codec);
			if (this.PassengerId != 0U)
			{
				output.WriteRawTag(64);
				output.WriteUInt32(this.PassengerId);
			}
			if (this.DNGLGOMMFNP)
			{
				output.WriteRawTag(88);
				output.WriteBool(this.DNGLGOMMFNP);
			}
			if (this.RecordId != 0U)
			{
				output.WriteRawTag(96);
				output.WriteUInt32(this.RecordId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600E62E RID: 58926 RVA: 0x00267DD4 File Offset: 0x00265FD4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.RecordId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.RecordId);
			}
			if (this.DNGLGOMMFNP)
			{
				num += 2;
			}
			num += this.bFGGMBADMHB_.CalculateSize(TrainPartyPassenger._repeated_bFGGMBADMHB_codec);
			if (this.PassengerId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.PassengerId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600E62F RID: 58927 RVA: 0x00267E4C File Offset: 0x0026604C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(TrainPartyPassenger other)
		{
			if (other == null)
			{
				return;
			}
			if (other.RecordId != 0U)
			{
				this.RecordId = other.RecordId;
			}
			if (other.DNGLGOMMFNP)
			{
				this.DNGLGOMMFNP = other.DNGLGOMMFNP;
			}
			this.bFGGMBADMHB_.Add(other.bFGGMBADMHB_);
			if (other.PassengerId != 0U)
			{
				this.PassengerId = other.PassengerId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600E630 RID: 58928 RVA: 0x00267EC1 File Offset: 0x002660C1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600E631 RID: 58929 RVA: 0x00267ECC File Offset: 0x002660CC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 42U)
				{
					if (num == 40U || num == 42U)
					{
						this.bFGGMBADMHB_.AddEntriesFrom(ref input, TrainPartyPassenger._repeated_bFGGMBADMHB_codec);
						continue;
					}
				}
				else
				{
					if (num == 64U)
					{
						this.PassengerId = input.ReadUInt32();
						continue;
					}
					if (num == 88U)
					{
						this.DNGLGOMMFNP = input.ReadBool();
						continue;
					}
					if (num == 96U)
					{
						this.RecordId = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04005B13 RID: 23315
		private static readonly MessageParser<TrainPartyPassenger> _parser = new MessageParser<TrainPartyPassenger>(() => new TrainPartyPassenger());

		// Token: 0x04005B14 RID: 23316
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005B15 RID: 23317
		public const int RecordIdFieldNumber = 12;

		// Token: 0x04005B16 RID: 23318
		private uint recordId_;

		// Token: 0x04005B17 RID: 23319
		public const int DNGLGOMMFNPFieldNumber = 11;

		// Token: 0x04005B18 RID: 23320
		private bool dNGLGOMMFNP_;

		// Token: 0x04005B19 RID: 23321
		public const int BFGGMBADMHBFieldNumber = 5;

		// Token: 0x04005B1A RID: 23322
		private static readonly FieldCodec<uint> _repeated_bFGGMBADMHB_codec = FieldCodec.ForUInt32(42U);

		// Token: 0x04005B1B RID: 23323
		private readonly RepeatedField<uint> bFGGMBADMHB_ = new RepeatedField<uint>();

		// Token: 0x04005B1C RID: 23324
		public const int PassengerIdFieldNumber = 8;

		// Token: 0x04005B1D RID: 23325
		private uint passengerId_;
	}
}
